/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package sv.edu.ufg.mir.geometria;

/**
 *
 * @author javaee
 */
public class Circulo {
 
    private double radio;
    private double area;
    private double perimetro;

    public Circulo(double radio) {
        this.radio = radio;
        this.area=0.0;
        this.perimetro=0.0;
        
    }

    public Circulo() {
     this.radio = 0.0;
     this.area=0.0;
     this.perimetro=0.0;
    }

    public double getRadio() {
        return radio;
    }

    public void setRadio(double radio) {
        this.radio = radio;
    }
    
    public double calcularArea()
    {
      this.area = Math.PI*Math.pow(this.radio,2);
      return this.area;
    }
    
    public double calcularPerimetro()
    {
     this.perimetro=2*this.radio*Math.PI;
     return this.perimetro;
    }
            
    
}
